package cn.gaotu;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;

/**
 * @author ZouX
 * @date 2022/8/10 14:21
 */

//申明当前类是SpringBoot项目的启动类
@SpringBootApplication
//@EnableAutoConfiguration-自动配置(开启Spring对MNV的注解支持,静态放行)
//@ComponentScan - 扫描当前包及其子包
@MapperScan("cn.gaotu.*.mapper")
//扫描加载权限的Listener
@ServletComponentScan(value = {"cn.gaotu.system.listener"})
public class PethomeApp {

    public static void main(String[] args) {
        SpringApplication.run(PethomeApp.class, args);
    }

}
